﻿using System;
using System.Configuration;

namespace JZ.JiangSu.Model.Entity
{
    [Serializable]
    public partial class UserInfo:BaseEntity
    {
        //实体类的构造函数
        public UserInfo()
        {
            var img = ConfigurationManager.AppSettings["UserRegDefaultImg"];
            Birthday = new DateTime(1900, 1, 1);
            Picture = string.Empty;
            this.Picture =string.IsNullOrWhiteSpace(img)?"/Images/wzp.gif":img;
            this.Address = string.Empty;
            this.IdNumber = string.Empty;
        }
        ///<summary>真男,假女</summary>
        public bool Sex { get; set; }
        ///<summary>个人用户生日</summary>
        public System.DateTime Birthday { get; set; }
        ///<summary>个人用户头像 默认值:/Images/wzp.gif</summary>
        public string Picture { get; set; }
        ///<summary>学历</summary>
        public int Educational { get; set; }
        public int ID { get; set; }
        ///<summary>证书专业</summary>
        public int SubjectID { get; set; }
        ///<summary>联系地址</summary>
        public string Address { get; set; }
        ///<summary>职称等级</summary>
        public int JobTitle { get; set; }
        ///<summary>身份证</summary>
        public string IdNumber { get; set; }
        public int WorkYears { get; set; }
    }
}
